package com.why.service;

import com.github.pagehelper.PageInfo;
import com.why.pojo.Order;
import com.why.pojo.Product;

import java.util.List;

public interface OrderService {

    boolean addOrder(Order order, List<Product> products);

    //根据user id 查询账单列表
    PageInfo<Order> selectOrderByUserId(Integer id,Integer pageSize,Integer pageNum);

    //逻辑删除
    boolean cancelOrderById(Integer id);

    //物理删除
    boolean deleteOrderById(Integer id);


    Order selectByPrimaryKey(Integer id);
}
